package net.jumpengine.po;

import javafx.scene.paint.Color;

/**
 * 描述边框信息的类,四边边距,圆角,移出边框颜色,移入边框颜色
 * <br /><br />
 * <b>作者:&nbsp;</b>张天文 <br />
 * <b>日期:&nbsp;</b>2020年2月25日 下午1:59:34<br />
 * @date
 */
public class Border {
	private int left,right,top,bottom,radius;
	/** 边框颜色,默认为黑色 */
	private Color color=Color.ORANGE;
	/** 鼠标移入时的边框颜色*/
	private Color moveIn=Color.AQUAMARINE;
	
	/**
	 * 四边为1,radius为0的默认构造
	 */
	public Border() {
		this(1,1,1,1,0);
	}

	/**
	 * 全部属性赋值的构造类
	 * @param left 左边宽度
	 * @param right 右边宽度
	 * @param top 顶部宽度
	 * @param bottom 底部宽度
	 * @param radius 边角圆角半径
	 */
	public Border(int left, int right, int top, int bottom, int radius) {
		this.left = left;
		this.right = right;
		this.top = top;
		this.bottom = bottom;
		this.radius = radius;
	}
	
	public void set(int left, int right, int top, int bottom, int radius) {
		this.left = left;
		this.right = right;
		this.top = top;
		this.bottom = bottom;
		this.radius = radius;
	}

	public int getLeft() {
		return left;
	}

	public void setLeft(int left) {
		this.left = left;
	}

	public int getRight() {
		return right;
	}

	public void setRight(int right) {
		this.right = right;
	}

	public int getTop() {
		return top;
	}

	public void setTop(int top) {
		this.top = top;
	}

	public int getBottom() {
		return bottom;
	}

	public void setBottom(int bottom) {
		this.bottom = bottom;
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Color getMoveIn() {
		return moveIn;
	}

	public void setMoveIn(Color moveIn) {
		this.moveIn = moveIn;
	}
}
